home *** CD-ROM | disk | FTP | other *** search
- /***********************************************************************
- *
- * darts uglobals.c -- Version 3.0
- *
- * Copyright (c)
- * Apple Computer, Inc. 1986-1990
- * All Rights Reserved.
- *
- * Developer Technical Support Apple II Sample Code
- *
- * This file contains the global variables used by the program.
- *
- ***********************************************************************/
-
- #include <types.h>
- #include <event.h>
- #include <list.h>
- #include <memory.h>
- #include <quickdraw.h>
- #include <window.h>
- #include "darts.h"
-
- unsigned int crickettTables[NumPlayers][26], score[NumPlayers];
- unsigned int listEntries[NumPlayers];
- unsigned int userID, quitFlag, gameType, weHaveAWinner, firstUpdateComplete;
-
- MyMemRecHndl scoreList[NumPlayers];
- WmTaskRec event;
- GrafPortPtr theWindow;
-
- char scoreStrings[NumPlayers][64];
- char *scoreStringArray[NumPlayers] = {
- scoreStrings[0], scoreStrings[1]
- };
-
-
- void initGlobals() /* Setup variables. */
- {
- score[Player1] = score[Player2] = 0;
-
- gameType = 0;
- }
-